package com.friend.street.action.user;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.friend.street.action.BaseAction;
import com.friend.street.dto.JsonResult;
import com.friend.street.dto.user.Friend;

public class UserAction extends BaseAction {

	/**
	 * 
	 */
	private static final long serialVersionUID = -5760665991004638823L;
	
	/**取好友列表*/
	public void getFriendsList() {
		
		try{
			JsonResult result = new JsonResult();
			List<Friend> friends = new ArrayList<Friend>();
			friends.add(new Friend("001", "小万", "xiaowan", "1"));
			friends.add(new Friend("002", "小袁", "xiaoyuan", "1"));
			friends.add(new Friend("003", "大树", "dashu", "0"));
			Map<String, List<Friend>> map = new HashMap<String, List<Friend>>();
			map.put("info", friends);
			result.add("data", map);
			printJsonText(result);
		} catch (Exception e) {
			e.printStackTrace();
		}
		
		
	}
	
	
	public void sendMsg() {
		
	}

}
